<#include "../common/_layout.html" />
<@head title="微信菜单管理编辑">
<style type="text/css">
	.cll {
		background-color: #ddd;
	}
</style>
</@head>
<@layout menu='/wechatmenu'>
<section class="content-header">
	<h1>
		舟山汇智智能科技有限公司
	</h1>
	<ol class="breadcrumb">
		<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
		<li><a href="#">lte</a></li>
		<li class="active">prj</li>
	</ol>
</section>
<section class="content">
	<div class="row">
		<div class="col-xs-12">
			<div class="box">
				<form action="${ctx}/wechatmenu/save" method="post" role="form">
					<legend>添加/修改信息</legend>
					<input type="hidden" name="id" id="id" value="${wechatMenu.id!}">

						<input type="hidden" class="form-control" id="wechat_info_id" name="wechat_info_id" placeholder="微信ID" value="${wechatMenu.wechat_info_id!}">

					<div class="form-group">
						<label for="title">菜单名称</label>
						<input type="text" class="form-control" id="title" name="title" placeholder="菜单名称" value="${wechatMenu.title!}">
					</div>
					<div class="form-group">
						<label for="pid">父节点</label>
						<select name="pid"  class="form-control">
							<option value="0">/</option>
							<#list parent as k>
								<#if k.pid??&&k.pid==0><option id="pid" value="${k.id!}"<#if wechatMenu.getPid()??&&wechatMenu.getPid()==k.id?eval >selected="selected"</#if>>${k.title!}</option></#if>
							</#list>
						</select>
					</div>
					<div class="form-group">
						<label for="type">类型</label>
						<select id="type" name="type" class="form-control" value="${wechatMenu.type!}">
							<option value = "click" <#if wechatMenu.type??&&wechatMenu.type.equals("click")>selected="selected"</#if>>发送消息</option>
							<option value = "view" <#if wechatMenu.type??&&wechatMenu.type.equals("view")>selected="selected"</#if>>跳转网页</option>
							<option value = "miniprogram" <#if wechatMenu.type??&&wechatMenu.type.equals("miniprogram")>selected="selected"</#if>>小程序</option>
						</select>
					</div>
					<div class="form-group">
						<label for="linkurl">菜单链接</label>
                        <input id="linkurl" name="linkurl" class="form-control" rows="5" value="${wechatMenu.linkurl!}"></input>
					</div>
					<div class="form-group">
						<label for="key">菜单Key</label>
						<input type="text" class="form-control" id="key" name="key" placeholder="菜单Key" value="${wechatMenu.key!}">
					</div>
					<div class="form-group">
						<label for="sort">顺序号</label>
						<input type="number" class="form-control" id="sort" name="sort" placeholder="顺序号" value="${wechatMenu.sort!}">
					</div>

						<input type="hidden" class="form-control" id="status" name="status" placeholder="状态" value="1">

					<button type="submit" class="btn btn-primary">保存</button><button type="submit" class="btn btn-cancle" onclick="javascript :history.back(-1);">返回</button>
				</form>
			</div>
		</div>
	</div>
</section>
</@layout>
<@scripts>
<script type="text/javascript">
	$(document).ready(function(){

	});
</script>
</@scripts>